<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>流水解析 - 大模型文档智能生成平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <style>
        /* [跟上面页面完全相同的CSS，为了独立运行，这里全部复制一份] */
        :root {
            --primary-color: #006838;
            --accent-color: #B58E55;
            --bg-color: #f4f6f9;
            --text-color: #333;
            --border-color: #e0e0e0;
            --sidebar-width: 240px;
            --header-height: 60px;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 14px;
        }

        .app-container { display: flex; height: 100vh; }
        .sidebar { width: var(--sidebar-width); background-color: #ffffff; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
        .sidebar-header { display: flex; align-items: center; justify-content: center; padding: 0 15px; height: var(--header-height); border-bottom: 1px solid var(--border-color); }
        .logo { height: 35px; margin-right: 10px; }
        .sidebar-header h1 { font-size: 16px; font-weight: 600; color: var(--primary-color); white-space: nowrap; }
        .sidebar-nav { flex-grow: 1; padding: 20px 0; }
        .sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
        .sidebar-nav li a { display: flex; align-items: center; padding: 12px 20px; color: #555; text-decoration: none; transition: all 0.2s; font-weight: 500; }
        .sidebar-nav li a:hover { background-color: #f0f7f2; color: var(--primary-color); }
        .sidebar-nav li a.active { background-color: var(--primary-color); color: white; border-right: 4px solid var(--accent-color); }
        .sidebar-nav li a .fa-fw { margin-right: 15px; width: 20px; text-align: center; }
        .main-wrapper { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
        .header { height: var(--header-height); background-color: #fff; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: flex-end; padding: 0 30px; }
        .header-actions { display: flex; align-items: center; gap: 25px; }
        .header-actions .icon-btn { font-size: 18px; color: #666; cursor: pointer; }
        .user-profile { display: flex; align-items: center; gap: 10px; }
        .user-profile img { width: 36px; height: 36px; border-radius: 50%; }
        .user-profile span { font-weight: 500; }
        .main-content { flex-grow: 1; padding: 30px; overflow-y: auto; }
        h2.page-title { font-size: 24px; font-weight: 600; margin-top: 0; margin-bottom: 25px; }
        .btn { padding: 10px 20px; border-radius: 5px; border: 1px solid transparent; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
        .btn-primary { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
        .btn-primary:hover { background-color: #005a2f; }
        .table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border-radius: 8px; overflow: hidden; }
        .table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
        .table th { background-color: #f8f9fa; font-weight: 600; color: #444; }
        .table tbody tr:hover { background-color: #f0f7f2; }
        
        /* Two-column Layout */
        .split-layout {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 30px;
            height: calc(100% - 40px);
        }
        .panel {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            padding: 25px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .panel h3 {
            margin-top: 0;
            font-size: 18px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

        /* Dropzone */
        .dropzone {
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 30px;
            flex-grow: 1;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .dropzone:hover {
            background-color: #f9f9f9;
            border-color: var(--primary-color);
        }
        .dropzone .fa-upload {
            font-size: 50px;
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        
        .highlight-warning {
            background-color: #fffbe6;
        }
        .highlight-warning td:first-child::before {
            content: "⚠️";
            margin-right: 8px;
        }
    </style>
</head>
<body>
    <div class="app-container">
        <!-- Sidebar -->
        <aside class="sidebar">
            <div class="sidebar-header">
                <img src="https://i.imgur.com/uTjxkMh.png" alt="Logo" class="logo">
                <h1>文档智能生成平台</h1>
            </div>
            <nav class="sidebar-nav">
                <ul>
                    <li><a href="#"><i class="fas fa-cog fa-fw"></i> 系统管理</a></li>
                    <li><a href="#"><i class="fas fa-database fa-fw"></i> 数据获取</a></li>
                    <li><a href="#"><i class="fas fa-file-alt fa-fw"></i> 模板管理</a></li>
                    <li><a href="#"><i class="fas fa-cogs fa-fw"></i> 内容配置</a></li>
                    <li><a href="#" class="active"><i class="fas fa-receipt fa-fw"></i> 流水解析</a></li>
                    <li><a href="#"><i class="fas fa-magic fa-fw"></i> 文档生成</a></li>
                </ul>
            </nav>
        </aside>

        <!-- Main Wrapper -->
        <div class="main-wrapper">
             <!-- Header -->
            <header class="header">
                 <div class="header-actions">
                    <i class="fas fa-bell icon-btn"></i>
                    <i class="fas fa-question-circle icon-btn"></i>
                    <div class="user-profile">
                        <img src="https://i.pravatar.cc/40?u=admin" alt="User Avatar">
                        <span>王经理</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                </div>
            </header>

            <!-- Main Content -->
            <main class="main-content">
                <h2 class="page-title">流水解析</h2>
                <div class="split-layout">
                    <!-- Left Panel: Upload -->
                    <div class="panel">
                        <h3>上传流水文件</h3>
                        <div class="dropzone">
                            <i class="fas fa-upload"></i>
                            <h4>拖拽文件到此处</h4>
                            <p>或</p>
                            <button class="btn btn-primary" style="margin-top: 10px;">点击上传</button>
                            <p style="font-size: 12px; color: #888; margin-top: 20px;">支持 JPG, PNG, PDF 格式</p>
                        </div>
                    </div>

                    <!-- Right Panel: Result -->
                    <div class="panel" style="padding: 0; background: none; box-shadow: none;">
                       <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 0 10px;">
                            <h3 style="border: none; margin: 0;">解析结果</h3>
                            <button class="btn btn-primary"><i class="fas fa-check"></i> 确认并导入</button>
                       </div>
                        <div style="flex-grow: 1; overflow-y: auto;">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>交易日期</th>
                                        <th>交易摘要</th>
                                        <th>交易金额 (元)</th>
                                        <th>账户余额 (元)</th>
                                        <th>交易分类</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>2025-06-05</td>
                                        <td>工资</td>
                                        <td style="color: green;">+25,000.00</td>
                                        <td>58,000.00</td>
                                        <td><span style="background: #e6f0eb; color: #006838; padding: 3px 8px; border-radius: 12px;">工资收入</span></td>
                                    </tr>
                                    <tr class="highlight-warning">
                                        <td>2025-06-07</td>
                                        <td>财付通-消费</td>
                                        <td style="color: red;">-1,288.00</td>
                                        <td>56,712.00</td>
                                        <td><span style="background: #fff0dd; color: #d97706; padding: 3px 8px; border-radius: 12px;">日常消费 (待确认)</span></td>
                                    </tr>
                                    <tr>
                                        <td>2025-06-10</td>
                                        <td>还款-房贷</td>
                                        <td style="color: red;">-8,500.00</td>
                                        <td>48,212.00</td>
                                        <td><span style="background: #fee2e2; color: #b91c1c; padding: 3px 8px; border-radius: 12px;">贷款偿还</span></td>
                                    </tr>
                                    <tr>
                                        <td>2025-06-15</td>
                                        <td>转入-李四</td>
                                        <td style="color: green;">+5,000.00</td>
                                        <td>53,212.00</td>
                                        <td><span style="background: #dbeafe; color: #1e40af; padding: 3px 8px; border-radius: 12px;">个人转账</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>
</body>
</html>
